<template>
  <div class="app-container">
    <!-- 检索条件  -->
    <search @search="search" />
    <!-- 数据内容 -->
    <table-data ref="tableData" />
  </div>
</template>

<script>
import search from './components/Search.vue'
import TableData from './components/Table.vue'
export default {
  name: 'Contract',
  components: {
    search,
    TableData
  },
  data: function() {
    return {
    }
  },
  created: function() {},
  methods: {
    search(query) {
      this.$refs['tableData'].initData(query)
    }
  }
}
</script>

<style>
</style>
